package com.example.music_review;

import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.music_review.adapter.WelcomeAdapter;

import java.util.ArrayList;
import java.util.List;

public class WelcomeActivity extends AppCompatActivity {

    private ViewPager viewPager;
    private List<Fragment> list;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

        viewPager = findViewById(R.id.Vp);
        list = new ArrayList<>();
        list.add(new WelcomeFragment());
        list.add(new BlankFragment());
        list.add(new BlankFragment2());

        viewPager.setAdapter(new WelcomeAdapter(getSupportFragmentManager(),list));

        BlankFragment2 fragment2 = new BlankFragment2();

    }



}
